// 导出路由规则
import Layout from "@/layout";
export default {
  path: "/user", // 路径
  name: "user",
  component: Layout, // 组件
  redirect: "/user/positionInfo",
  meta: { title: "用户" },
  // 配置二级路由
  children: [
    {
      path: "resume",
      name: "resume",
      component: () => import("@/views/user/resume"),
      meta: { title: "个人简历管理" },
      children: [
        {
          path: "allResume",
          name: "allResume",
          component: () => import("@/views/user/resume/allResume"),
          meta: { title: "全部简历", noCache: true },
        },
        {
          path: "addResume",
          name: "addResume",
          hidden: true,
          component: () => import("@/views/user/resume/allResume/addResume"),
          meta: { title: "新增简历" },
        },

        {
          path: "resumebin",
          name: "resumebin",
          component: () => import("@/views/user/resume/resumebin"),
          meta: { title: "简历回收站", noCache: true },
          hidden: true,
        },
        {
          path: "resumeRecord",
          name: "resumeRecord",
          component: () => import("@/views/user/resume/resumeRecord"),
          meta: { title: "投递简历记录", noCache: true },
        },
      ],
    },
    {
      path: "memberManage",
      name: "memberManage",
      component: () => import("@/views/user/memberManage"),
      meta: { title: "用户账号" },
      children: [
        {
          path: "enterpriseMember",
          name: "enterpriseMember",
          component: () => import("@/views/user/memberManage/enterpriseMember"),
          meta: { title: "企业会员", noCache: true },
        },
        {
          path: "personMember",
          name: "personMember",
          component: () => import("@/views/user/memberManage/personMember"),
          meta: { title: "个人会员", noCache: true },
        },
        {
          path: "invalidMember",
          name: "invalidMember",
          component: () => import("@/views/user/memberManage/invalidMember"),
          meta: { title: "无效会员", noCache: true },
        },
      ],
    },

    {
      path: "/company",
      name: "company",
      component: () => import("@/views/user/company"),
      meta: { title: "企业信息管理" },
      alwaysShow: true,
      children: [
        {
          path: "companyUser",
          name: "companyUser",
          component: () => import("@/views/user/company/companyUser"),
          meta: { title: "企业管理", noCache: true },
        },
        // {
        //   path: "user",
        //   name: "user",
        //   component: () => import("@/views/user/company/user"),
        //   meta: { title: "用户管理", noCache: true },
        // },
      ],
    },
    {
      path: "positionInfo",
      name: "positionInfo",
      component: () => import("@/views/user/positionInfo"),
      meta: { title: "职位信息管理", noCache: true },
      children: [
        {
          path: "positionManage",
          name: "positionManage",
          component: () => import("@/views/user/positionInfo/positionManage"),
          meta: { title: "职位管理", noCache: true },
        },
        {
          path: "editPosition",
          name: "editPosition",
          hidden: true,
          component: () =>
            import("@/views/user/positionInfo/positionManage/editPosition"),
          meta: { title: "编辑职位" },
        },
        {
          path: "interviewInvite",
          name: "interviewInvite",
          component: () => import("@/views/user/positionInfo/interviewInvite"),
          meta: { title: "面试邀请", noCache: true },
        },
        {
          path: "videoInterview",
          name: "videoInterview",
          component: () => import("@/views/user/positionInfo/videoInterview"),
          hidden: true,
          meta: { title: "视频面试", noCache: true },
        },
        {
          path: "resumeDownload",
          name: "resumeDownload",
          component: () => import("@/views/user/positionInfo/resumeDownload"),
          meta: { title: "简历下载", noCache: true },
        },
      ],
    },
    {
      path: "accountLogOff",
      name: "accountLogOff",
      component: () => import("@/views/user/accountLogOff"),
      meta: { title: "账号注销申请" },
      hidden: true,
      children: [
        {
          path: "enterpriseLogOff",
          name: "enterpriseLogOff",
          component: () =>
            import("@/views/user/accountLogOff/enterpriseLogOff"),
          meta: { title: "企业注销申请" },
        },
        {
          path: "personLogOff",
          name: "personLogOff",
          component: () => import("@/views/user/accountLogOff/personLogOff"),
          meta: { title: "个人注销申请" },
        },
      ],
    },
  ],
};
